import { lazy } from "react";

const Index = lazy(() => import("../pages/index/index"));
const Home = lazy(() => import("../pages/home"));
const Detail = lazy(() => import("../pages/detail"));
const Success = lazy(() => import("../pages/success"));

export const homeRouters = [
  {
    path: "/",
    element: <Index></Index>,
  },
];

export const routers = [
  {
    path: "/",
    element: <Home></Home>,
    children: homeRouters,
  },
  {
    path: "/detail",
    element: <Detail></Detail>,
  },
  {
    path: "/success",
    element: <Success></Success>,
  },
];
